package com.nbsaas.boot.cms.data.entity;


import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.FormField;
import com.nbsaas.boot.code.annotation.InputType;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

@FormAnnotation(title = "文件下载", menu = "1,57,67")
@Data
@Entity
@Table(name = "bs_down_file")
public class DownFile extends AbstractEntity {


    @SearchItem(label = "文件名称", key = "name", name = "name")
    @FormField(title = "文件名称", sortNum = "2", grid = true, width = "180", required = true)
    private String name;


    @FormField(title = "文件截图", sortNum = "4", grid = true, type = InputType.image)
    private String logo;


    @FormField(title = "文件地址", sortNum = "4", grid = true, type = InputType.el_upload, width = "10000")
    private String downUrl;


    @FormField(title = "内容", sortNum = "4", type = InputType.textarea)
    private String note;
}
